package cn.org.xiaosheng.core.protocol;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author XiaoSheng
 * @date 2024/8/21 下午12:16
 */
public class SequenceIdGenerator {
    private static final AtomicInteger id = new AtomicInteger();

    public static int nextId() {
        return id.incrementAndGet();
    }

}
